<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: SystemSharp.Common.ReflectionHelper Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_system_sharp_1_1_common_1_1_reflection_helper.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_system_sharp_1_1_common_1_1_reflection_helper-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SystemSharp.Common.ReflectionHelper Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af490aa2ecb346bbc2ba45f3364aa5b04"><td class="memItemLeft" align="right" valign="top">static Type[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#af490aa2ecb346bbc2ba45f3364aa5b04">GetArgTypes</a> (this MethodBase mb)</td></tr>
<tr class="memdesc:af490aa2ecb346bbc2ba45f3364aa5b04"><td class="mdescLeft">&#160;</td><td class="mdescRight">This extension method returns the argument types of a given method.  <a href="#af490aa2ecb346bbc2ba45f3364aa5b04">More...</a><br/></td></tr>
<tr class="separator:af490aa2ecb346bbc2ba45f3364aa5b04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e5f2a8e308328b84c0d1420f4d11aa6"><td class="memItemLeft" align="right" valign="top">static object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#a3e5f2a8e308328b84c0d1420f4d11aa6">Invoke</a> (this MethodBase mb, params object[] args)</td></tr>
<tr class="memdesc:a3e5f2a8e308328b84c0d1420f4d11aa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">This extension method invokes a given method with a given argument list. If the method is non-static, the "this" argument is expected to be the first value within the args parameter.  <a href="#a3e5f2a8e308328b84c0d1420f4d11aa6">More...</a><br/></td></tr>
<tr class="separator:a3e5f2a8e308328b84c0d1420f4d11aa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae71b520f8900dd7d0a447776f4fac125"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#ae71b520f8900dd7d0a447776f4fac125">IsFunction</a> (this MethodBase mb, out Type returnType)</td></tr>
<tr class="memdesc:ae71b520f8900dd7d0a447776f4fac125"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the method is a function, meaning it returns some value.  <a href="#ae71b520f8900dd7d0a447776f4fac125">More...</a><br/></td></tr>
<tr class="separator:ae71b520f8900dd7d0a447776f4fac125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcf7f0d98989cae19321bff3a66ece7e"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#abcf7f0d98989cae19321bff3a66ece7e">IsFunctionOrCtor</a> (this MethodBase mb, out Type returnType)</td></tr>
<tr class="memdesc:abcf7f0d98989cae19321bff3a66ece7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if specified method is either a method with non-void return type or a constructor.  <a href="#abcf7f0d98989cae19321bff3a66ece7e">More...</a><br/></td></tr>
<tr class="separator:abcf7f0d98989cae19321bff3a66ece7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af914105e788aa94b814f9b09f5e05f6a"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#af914105e788aa94b814f9b09f5e05f6a">ReturnsSomething</a> (this MethodBase mb, out Type returnType)</td></tr>
<tr class="memdesc:af914105e788aa94b814f9b09f5e05f6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if specified method is either a method with non-void return type or a constructor.  <a href="#af914105e788aa94b814f9b09f5e05f6a">More...</a><br/></td></tr>
<tr class="separator:af914105e788aa94b814f9b09f5e05f6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24207895015831d5eaecdad1fce72248"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#a24207895015831d5eaecdad1fce72248">IsEnumerable</a> (this Type type)</td></tr>
<tr class="memdesc:a24207895015831d5eaecdad1fce72248"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether a given type is enumerable. A type is said to be enumerable if it is either an integral primitive type (including bool) or an enumeration type. Floating-point types are not enumerable.  <a href="#a24207895015831d5eaecdad1fce72248">More...</a><br/></td></tr>
<tr class="separator:a24207895015831d5eaecdad1fce72248"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa25a0f3748199fea68d579934c3a6a88"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; MethodInfo &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#aa25a0f3748199fea68d579934c3a6a88">GetAncestorDefinitions</a> (this MethodInfo method)</td></tr>
<tr class="memdesc:aa25a0f3748199fea68d579934c3a6a88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the chain of method base definitions, i.e. methods being overwritten by specified method.  <a href="#aa25a0f3748199fea68d579934c3a6a88">More...</a><br/></td></tr>
<tr class="separator:aa25a0f3748199fea68d579934c3a6a88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a353da773174aa56834d102a73ea2a618"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; MethodBase &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#a353da773174aa56834d102a73ea2a618">GetAncestorDefinitions</a> (this MethodBase method)</td></tr>
<tr class="memdesc:a353da773174aa56834d102a73ea2a618"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the chain of method base definitions, i.e. methods being overwritten by specified method.  <a href="#a353da773174aa56834d102a73ea2a618">More...</a><br/></td></tr>
<tr class="separator:a353da773174aa56834d102a73ea2a618"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3536eacc12e5955cb4c9a2059af64aca"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#a3536eacc12e5955cb4c9a2059af64aca">GetBaseTypeChain</a> (this Type type)</td></tr>
<tr class="memdesc:a3536eacc12e5955cb4c9a2059af64aca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all base types and their respective type parameters of specified type.  <a href="#a3536eacc12e5955cb4c9a2059af64aca">More...</a><br/></td></tr>
<tr class="separator:a3536eacc12e5955cb4c9a2059af64aca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabfcc000c0290ee3a9031ed9405a9d50"><td class="memItemLeft" align="right" valign="top">static MethodInfo&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#aabfcc000c0290ee3a9031ed9405a9d50">FindImplementation</a> (this MethodInfo method, object instance)</td></tr>
<tr class="memdesc:aabfcc000c0290ee3a9031ed9405a9d50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds an implementation of a possibly abstract or interface method an a specific instance.  <a href="#aabfcc000c0290ee3a9031ed9405a9d50">More...</a><br/></td></tr>
<tr class="separator:aabfcc000c0290ee3a9031ed9405a9d50"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a4c8eabf876a0e136a407f5edd6f901aa"><td class="memItemLeft" align="right" valign="top">static readonly <br class="typebreak"/>
IEqualityComparer&lt; MethodBase &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#a4c8eabf876a0e136a407f5edd6f901aa">MethodEqualityComparer</a></td></tr>
<tr class="memdesc:a4c8eabf876a0e136a407f5edd6f901aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">An equality comparer which defines methods to be the same if their method handles or equal.  <a href="#a4c8eabf876a0e136a407f5edd6f901aa">More...</a><br/></td></tr>
<tr class="separator:a4c8eabf876a0e136a407f5edd6f901aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d0bae3757e816c7e6f061e43c9f81d7"><td class="memItemLeft" align="right" valign="top">static readonly <br class="typebreak"/>
IEqualityComparer&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#a4d0bae3757e816c7e6f061e43c9f81d7">TypeEqualityComparer</a></td></tr>
<tr class="memdesc:a4d0bae3757e816c7e6f061e43c9f81d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">An equality comparer which defines types to be the same if their type handles or equal.  <a href="#a4d0bae3757e816c7e6f061e43c9f81d7">More...</a><br/></td></tr>
<tr class="separator:a4d0bae3757e816c7e6f061e43c9f81d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeade6859893f00f015160fce1cc1e1d1"><td class="memItemLeft" align="right" valign="top">static readonly <br class="typebreak"/>
IEqualityComparer&lt; FieldInfo &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html#aeade6859893f00f015160fce1cc1e1d1">FieldEqualityComparer</a></td></tr>
<tr class="memdesc:aeade6859893f00f015160fce1cc1e1d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">An equality comparer which defines fields to be the same if their field handles or equal.  <a href="#aeade6859893f00f015160fce1cc1e1d1">More...</a><br/></td></tr>
<tr class="separator:aeade6859893f00f015160fce1cc1e1d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00029">29</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aabfcc000c0290ee3a9031ed9405a9d50"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static MethodInfo SystemSharp.Common.ReflectionHelper.FindImplementation </td>
          <td>(</td>
          <td class="paramtype">this MethodInfo&#160;</td>
          <td class="paramname"><em>method</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>instance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Finds an implementation of a possibly abstract or interface method an a specific instance. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">method</td><td>Any method, may be abstract or an interface method</td></tr>
    <tr><td class="paramname">instance</td><td>A concrete object</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A method which is defined on instance and implements the given method. null if no such method exists.</dd></dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00191">191</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa25a0f3748199fea68d579934c3a6a88"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;MethodInfo&gt; SystemSharp.Common.ReflectionHelper.GetAncestorDefinitions </td>
          <td>(</td>
          <td class="paramtype">this MethodInfo&#160;</td>
          <td class="paramname"><em>method</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the chain of method base definitions, i.e. methods being overwritten by specified method. </p>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00147">147</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a353da773174aa56834d102a73ea2a618"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;MethodBase&gt; SystemSharp.Common.ReflectionHelper.GetAncestorDefinitions </td>
          <td>(</td>
          <td class="paramtype">this MethodBase&#160;</td>
          <td class="paramname"><em>method</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the chain of method base definitions, i.e. methods being overwritten by specified method. </p>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00161">161</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af490aa2ecb346bbc2ba45f3364aa5b04"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Type [] SystemSharp.Common.ReflectionHelper.GetArgTypes </td>
          <td>(</td>
          <td class="paramtype">this MethodBase&#160;</td>
          <td class="paramname"><em>mb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This extension method returns the argument types of a given method. </p>
<p>If the method is non-static, this includes the type of the "this" argument which is transferred implicitly. The "this" argument type is then the first element of the returned array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mb</td><td>The method to query</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array with the argument types of the method</dd></dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00040">40</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3536eacc12e5955cb4c9a2059af64aca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;Type&gt; SystemSharp.Common.ReflectionHelper.GetBaseTypeChain </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all base types and their respective type parameters of specified type. </p>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00172">172</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3e5f2a8e308328b84c0d1420f4d11aa6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static object SystemSharp.Common.ReflectionHelper.Invoke </td>
          <td>(</td>
          <td class="paramtype">this MethodBase&#160;</td>
          <td class="paramname"><em>mb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">params object[]&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This extension method invokes a given method with a given argument list. If the method is non-static, the "this" argument is expected to be the first value within the args parameter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mb</td><td>the method to be invoked</td></tr>
    <tr><td class="paramname">args</td><td>the argument list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the return value of the invoked method, null if the method does not return any value.</dd></dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00058">58</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a24207895015831d5eaecdad1fce72248"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool SystemSharp.Common.ReflectionHelper.IsEnumerable </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tests whether a given type is enumerable. A type is said to be enumerable if it is either an integral primitive type (including bool) or an enumeration type. Floating-point types are not enumerable. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>The type to test</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the type is enumerable, false if not</dd></dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00127">127</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ae71b520f8900dd7d0a447776f4fac125"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool SystemSharp.Common.ReflectionHelper.IsFunction </td>
          <td>(</td>
          <td class="paramtype">this MethodBase&#160;</td>
          <td class="paramname"><em>mb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Type&#160;</td>
          <td class="paramname"><em>returnType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if the method is a function, meaning it returns some value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mb</td><td>the method</td></tr>
    <tr><td class="paramname">returnType</td><td>receives the type of the method return value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the method returns some non-void value, false if not</dd></dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00080">80</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="abcf7f0d98989cae19321bff3a66ece7e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool SystemSharp.Common.ReflectionHelper.IsFunctionOrCtor </td>
          <td>(</td>
          <td class="paramtype">this MethodBase&#160;</td>
          <td class="paramname"><em>mb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Type&#160;</td>
          <td class="paramname"><em>returnType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if specified method is either a method with non-void return type or a constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">returnType</td><td>type returned by method or class type instantiated by constructor, respectively</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NotImplementedException</td><td>if <em>mb</em>  is neither method nor constructor (FIXME: can this actually happen?)</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00095">95</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af914105e788aa94b814f9b09f5e05f6a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool SystemSharp.Common.ReflectionHelper.ReturnsSomething </td>
          <td>(</td>
          <td class="paramtype">this MethodBase&#160;</td>
          <td class="paramname"><em>mb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Type&#160;</td>
          <td class="paramname"><em>returnType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if specified method is either a method with non-void return type or a constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">returnType</td><td>type returned by method or class type instantiated by constructor, respectively</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00110">110</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aeade6859893f00f015160fce1cc1e1d1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly IEqualityComparer&lt;FieldInfo&gt; SystemSharp.Common.ReflectionHelper.FieldEqualityComparer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line">            <span class="keyword">new</span> FieldEqualityComparerImpl()</div>
</div><!-- fragment -->
<p>An equality comparer which defines fields to be the same if their field handles or equal. </p>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00275">275</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a4c8eabf876a0e136a407f5edd6f901aa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly IEqualityComparer&lt;MethodBase&gt; SystemSharp.Common.ReflectionHelper.MethodEqualityComparer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= </div>
<div class="line">            <span class="keyword">new</span> MethodEqualityComparerImpl()</div>
</div><!-- fragment -->
<p>An equality comparer which defines methods to be the same if their method handles or equal. </p>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00263">263</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a4d0bae3757e816c7e6f061e43c9f81d7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly IEqualityComparer&lt;Type&gt; SystemSharp.Common.ReflectionHelper.TypeEqualityComparer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line">            <span class="keyword">new</span> TypeEqualityComparerImpl()</div>
</div><!-- fragment -->
<p>An equality comparer which defines types to be the same if their type handles or equal. </p>

<p>Definition at line <a class="el" href="_reflection_helper_8cs_source.html#l00269">269</a> of file <a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_reflection_helper_8cs_source.html">ReflectionHelper.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_system_sharp.html">SystemSharp</a></li><li class="navelem"><a class="el" href="namespace_system_sharp_1_1_common.html">Common</a></li><li class="navelem"><a class="el" href="class_system_sharp_1_1_common_1_1_reflection_helper.html">ReflectionHelper</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:58 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
